<%@ taglib prefix="tiles" uri="http://tiles.apache.org/tags-tiles" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>

<security:authorize ifAllGranted="ROLE_USER">

<div id="heading" class="section">
	<h2>Resultado del reporte</h2>
</div>

<div id="hotelResults" class="section">

    <form:form action="finalizaAmigos" method="post">
       
        
 <div class="field">

    <c:if test="${not empty listas}">
	<table class="summary">
		<thead>
			<tr>
                <th>Discoteca</th>
                <th>Fecha</th>
                <th>Action</th>
			</tr>
		</thead>
		<tbody>
			<c:forEach var="lista" items="${listas}">
				<tr>
					<td>${lista.codigoDiscoteca.nombre}</td>
					<td>${lista.fecha}</td>
					<td><a href="contactos?id=${lista.codigo}">Detalle</a></td>
				</tr>
			</c:forEach>
			
		</tbody>
	</table>
	
    </c:if>
     </div>
        &nbsp;<br/>
        &nbsp;<br/>
	<div class="buttonGroup">
            <input type="submit" name="submitform" value="Finalizar"/>
	</div>
        </form:form>
</div>	

</security:authorize>